package com.groupbuying.storeinternal.connector;

import com.groupbuying.storeinternal.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @anthor wenguoqiang
 * @date: 2019/06/19 11:44
 * @company 够样
 * @des
 **/
@Service
@FeignClient(name = "bus-settle")
public interface SettleFeign {

    @RequestMapping(value = { "/settleUshopWithdrawal/createWithdrawal" },  method = {RequestMethod.POST })
    ApiResult createWithdrawal(@RequestParam Map<String, Object> params);

    @RequestMapping(value = "/settleproducer/settleUshopFlowStore/getStoreBalanceByCheckstandId", method = RequestMethod.GET)
    BigDecimal settleUshopFlowStore(@RequestParam Map map);

    /**
     * 当日流水
     * @param
     * @return
     */
    @RequestMapping(value = "/settleproducer/settleUshopFlowStore/getStoreFlowListByCheckstandId", method = RequestMethod.GET)
    ApiResult getStoreTodayFlowByCheckstandId(@RequestParam Map map);
    @RequestMapping(value = "/settleproducer/settleUshopFlowStore/getStoreTodayIncomeByCheckstandId", method = RequestMethod.GET)

    BigDecimal getStoreTodayIncomeByCheckstandId(@RequestParam("checkstandId") String checkstandId);
}

